package com.cameron.serviceedu.service;

import com.cameron.serviceedu.entity.EduChapter;
import com.baomidou.mybatisplus.extension.service.IService;
import com.cameron.serviceedu.entity.dto.ChapterDto;
import com.cameron.utils.Result;

import java.util.List;

/**
 * <p>
 * 课程 服务类
 * </p>
 *
 * @author cameron
 * @since 2022-06-17
 */
public interface EduChapterService extends IService<EduChapter> {

    /**
     * 通过课程id获取所有章节
     *
     * @param curseId 课程id
     * @return
     */
    List<ChapterDto> getAll(String curseId);

    Result delChapter(String chapterId);
}

